package Controller;

import DB.CameraManager;
import DB.IFCameraManager;
import Model.Camera;


import java.util.ArrayList;

/**
 *
 * @author Selemani
 */
public class CameraController {
    
   private IFCameraManager manager;
    
    public CameraController(){
        manager = new CameraManager();
    }
    /**
     * Get all Cameras
     * @return 
     */
    public ArrayList<Camera> getCameras(){
        return manager.getCameras();
    }
    /**
     * Save camera
     * @param camera 
     */
    public void saveCamera(Camera camera){
        manager.saveCamera(camera);
        
        
    }
    /**
     * delete camera
     * @param camera 
     */
    
    public void deletecamera(Camera camera){
        manager.deleteCamera(camera);
        
        
    }
    /**
     * Create camera
     * @return 
     */
    public Camera createCamera(){
        return new Camera();
    }
}
